<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Scene-map</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

	<script src="/travel/resources/js/jquery-1.2.6.pack.js" type="text/javascript"></script>
	<script src="/travel/resources/js/json2.js" type="text/javascript"></script>
    <script src="http://cpc.sjtu.edu.cn/map/mapapis?tokenRing=618615" type="text/javascript"></script>
    <script src="/travel/resources/js/map.js" type="text/javascript"></script>
    <script src="/travel/resources/js/sightData.js" type="text/javascript"></script>
    <script src="/travel/resources/js/searchPointData.js" type="text/javascript"></script>
	<script type="text/javascript">
		var sightName = "<%=request.getAttribute("name")%>";
		$(document).ready(function() {
		    $("#newPoint").click(Sight.registerPoint);
		    $("#newPoint1").click(Sight.editPoint);
		});
	</script>

	<link rel="stylesheet" type="text/css" href="/travel/resources/styles.css">
  </head>
  
  <body>
    <div id="header">header-region</div>
    <div id="wrapper">
	    <div id="sights"></div>
	    <div id="mapDiv"></div>
	   	<div id="operation">
	   		<div id="info"></div>
	   	    <div id="newLabel">
	   	     	<p>
					<label>景点名称:</label>
					<input type="text" id="name"></input>
				</p>
				<p>
					<label>景点票价:</label>
					<input type="text" id="price"></input>
				</p>
				<p>
					<label>景点描述:</label>
					<textarea id="description" rows="5" cols="16"></textarea>
				</p>
				<input type="button" id="newPoint" value="新景点">
				<input type="button" id="cancel" value="取消" onclick="Map.clearLabel()">
	    	</div>
	    	<div id="editLabel">
	   	     	<p>
					<label>景点名称:</label>
					<input type="text" id="name1"></input>
				</p>
				<p>
					<label>景点票价:</label>
					<input type="text" id="price1"></input>
				</p>
				<p>
					<label>景点描述:</label>
					<textarea id="description1" rows="5" cols="16"></textarea>
				</p>
				<input type="button" id="newPoint1" value="保存">
				<input type="button" id="cancel1" value="取消" onclick="Map.clearLabel()">
	    	</div>
		</div>
	</div>
    <div id="footer">footer-region</div>
  </body>
</html>
